package com.xwkj.sharding.service;

import com.xwkj.sharding.entity.OrderEntity;
import com.xwkj.sharding.mapper.OrderMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderService {

    @Autowired
    private OrderMapper orderMapper;

    public List<OrderEntity> findExpiredOrderState(List<String> bpIds) {
        return orderMapper.findExpiredOrderState(bpIds);
    }

    public List<OrderEntity> findAll() {
        return orderMapper.findAll();
    }

    public void save(OrderEntity order) {
        orderMapper.save(order);
    }
}
